# simple.py
'''
python simple.py  register

python simple.py  server

'''
import os , sys
# 获取当前文件所在目录的上两级目录（即 src/common）
current_dir = os.path.dirname(os.path.abspath(__file__))
common_dir = os.path.abspath(os.path.join(current_dir,'..', '..','src'))
print(common_dir)
sys.path.append(common_dir)

from pycapabilitydecorator  import capability

# ---- 最简单能力接入
@capability.option()
def function1():
    return {
        "code": 0,
        "message": "[function1]成功"
    }
